{template 'common/header-base'}
<style>
	body{
		background: url('themes/qincewang/user/001.jpg');
		background-repeat:no-repeat;
		background-size:cover;
	}
	.bg-white{
		  background-color: rgba(255, 255, 255, 0.81);
	}
	.text-muted {
  color: #7B7878;
}
</style>
<div class="bg-white pulldown">
	<div class="content content-boxed overflow-hidden">
		<div class="row">
			<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
				<div class="push-10-t push-10 animated fadeIn">

					<div class="text-center">
						<a href="./?refresh" {if !empty($_W['setting']['copyright']['flogo'])}style="background:url('{php echo tomedia($_W['setting']['copyright']['flogo']);}') no-repeat;height:34px;display:block;
						background-position:center;"{else} style="background: url('resource/qincewang/img/gw-logo.png') no-repeat;height:34px;display:block;
						background-position:center;" {/if}> </a>

						<p class="text-muted push-5-t">微擎-免费开源的微信公众平台管理系统</p>
					</div>


					<form class="form-horizontal push-5-t" action="" method="post" role="form" onsubmit="return formcheck();">
						<div class="form-group">
							<label class="col-xs-12" for="login1-username">请输入用户名登录</label>
							<div class="col-xs-12">
								<input class="form-control" type="text" id="login1-username" name="username" >
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12" for="login1-password">请输入登录密码</label>
							<div class="col-xs-12">
								<input class="form-control" type="password" id="login1-password" name="password" >
							</div>
						</div>
						{if !empty($_W['setting']['copyright']['verifycode'])}
						<div class="form-group">
							<div class="col-xs-12">
								<label class="col-xs-12">验证码</label>
								<div class="col-xs-4" style="padding-left: 0">
									<input class="form-control" name="verify" type="text"><span></span>
									</div>
								<div class="col-xs-8">
									<img id="imgverify" style="height:34px;" /> <a href="javascript:;" id="toggle">看不清？换一张</a>
									</div>

							</div>
						</div>
						{/if}
						<div class="form-group">
							<div class="col-xs-12">
								<label class="css-input switch switch-sm switch-primary">
									<input type="checkbox" id="login1-remember-me" value="true" name="rember"><span></span> 记住用户名
								</label>
							</div>
						</div>
						<div class="form-group">
							<div class="col-xs-12" style="text-align: right;">
								<input class="btn btn-sm btn-primary" type="submit" name="submit" value="登 录" >
								{if !$_W['siteclose']}<a href="{url 'user/register'}" class="btn btn-sm btn-primary">注 册</a>{/if}
								<input name="token" value="{$_W['token']}" type="hidden" />
							</div>
						</div>
					</form>

				</div>
			</div>
		</div>
	</div>
</div>



<div class="pulldown push-30-t text-center animated fadeInUp">
	<small class="text-muted">{if empty($_W['setting']['copyright']['footerleft'])}Powered by <a href="http://www.we7.cc"><b>微擎</b></a> v{IMS_VERSION} &copy; 2014-2015 <a href="http://www.we7.cc">www.we7.cc</a>{else}{$_W['setting']['copyright']['footerleft']}{/if}</small>
</div>

<script>
function formcheck() {
	if($('#remember:checked').length == 1) {
		cookie.set('remember-username', $(':text[name="username"]').val());
	} else {
		cookie.del('remember-username');
	}
	return true;
}
var h = document.documentElement.clientHeight;
$('#imgverify').prop('src', '{php echo url('utility/code')}r='+Math.round(new Date().getTime()));
$(".login").css('min-height',h);
$('#toggle').click(function() {
	$('#imgverify').prop('src', '{php echo url('utility/code')}r='+Math.round(new Date().getTime()));
	return false;
});
{if !empty($_W['setting']['copyright']['verifycode'])}
	$('#form1').submit(function() {
		var verify = $(':text[name="verify"]').val();
		if (verify == '') {
			alert('请填写验证码');
			return false;
		}
	});
{/if}
</script>

<script src="./resource/qincewang/js/animations.js"></script>

</body>
</html>